﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace EZCRS.HCMS.Entity
{
    #region HCRS_ReceiveInfo
    /// <summary>
    /// 
    /// </summary>
    public class HCRS_ReceiveInfo
   {
        private int? _id;
        private int? _pid;
        private string _type;
        private string _template;
        private string _way;
        private string _address;
        private string _starttime;
        private string _endtime;
        private string _weeks;
        private string _remark;
        private int? _avaliable;



        public HCRS_ReceiveInfo()
        {}


        public HCRS_ReceiveInfo(DataRow dr)
        {
            if (dr != null)
            {
                if(dr["id"].ToString()!="")_id=Convert.ToInt32(dr["id"].ToString());
                if(dr["pid"].ToString()!="")_pid=Convert.ToInt32(dr["pid"].ToString());
                _type=dr["type"].ToString();
                _template=dr["template"].ToString();
                _way=dr["way"].ToString();
                _address=dr["address"].ToString();
                _starttime=dr["starttime"].ToString();
                _endtime=dr["endtime"].ToString();
                _weeks=dr["weeks"].ToString();
                _remark=dr["remark"].ToString();
                if(dr["avaliable"].ToString()!="")_avaliable=Convert.ToInt32(dr["avaliable"].ToString());


            }
        }



        #region 公共属性 


         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("id", "pk")]
         public int? id
         {
             get { return _id; }
             set { _id = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("pid")]
         public int? pid
         {
             get { return _pid; }
             set { _pid = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("type")]
         public string type
         {
             get { return _type; }
             set { _type = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("template")]
         public string template
         {
             get { return _template; }
             set { _template = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("way")]
         public string way
         {
             get { return _way; }
             set { _way = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("address")]
         public string address
         {
             get { return _address; }
             set { _address = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("starttime")]
         public string starttime
         {
             get { return _starttime; }
             set { _starttime = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("endtime")]
         public string endtime
         {
             get { return _endtime; }
             set { _endtime = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("weeks")]
         public string weeks
         {
             get { return _weeks; }
             set { _weeks = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("remark")]
         public string remark
         {
             get { return _remark; }
             set { _remark = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("avaliable")]
         public int? avaliable
         {
             get { return _avaliable; }
             set { _avaliable = value; }
         }



        #endregion


    }
    #endregion
}
